﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AB_SD_Entities
{
    /// <summary>
    /// Address entity
    /// </summary>
    public class Address
    {
        private int id;
        private string postcode;                           
        private string street;
        private int townId;

        /// <summary>
        /// Get or set Address ID
        /// </summary>
        public int Id
        {
            get { return id; }
            set { id = value; }
        }

        /// <summary>
        /// Get or set Postcode
        /// </summary>
        public string Postcode
        {
            get { return postcode; }
            set { postcode = value; }
        }

        /// <summary>
        /// Get or set Street
        /// </summary>
        public string Street
        {
            get { return street; }
            set { street = value; }
        }        
        
        /// <summary>
        /// Get or set Town ID
        /// </summary>
        public int TownId
        {
            get { return townId; }
            set { townId = value; }
        }

        public Address(int addressId, string addressPostcode, string addressStreet, int townid)
        {
            id = addressId;
            postcode = addressPostcode;
            street = addressStreet;
            townId = townid;
        }
    }
}
